﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace AutoGam
{
    public partial class TestForm : Form
    {
        //private UsbCardDevice usbCard = new UsbCardDevice();
        //private UsbLaiKa lkCard = new UsbLaiKa();

        public TestForm()
        {
            InitializeComponent();
            Device.Init();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            //textBox2.Text = lkCard.GetSerial();
            //textBox1.Text = usbCard.GetSerial();

            //String str2 = Device.UsbCardDevice.GetSerial();     
            Device.GetCard();
            Device.SendCard();            
        }

        private void button2_Click(object sender, EventArgs e)
        {
            Device.Exit();
        }
    }
}
